package com.xx.sg.dbw.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("custom_table_facility_xjkqzfd")
public class SummerGarrison {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    public String id;

    @TableField("longitude_")
    private String longitude;

    @TableField("latitude_")
    private String latitude;

    @TableField("gsdw_")
    private String gsdw;

    @TableField("zfddmc_")
    private String zfddmc;

    @TableField("zfrs_")
    private String zfrs;

    @TableField("gdfs_")
    private String gdfs;

    @TableField("gwxh_")
    private String gwxh;

    @TableField("zfrq_")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate zfrq;

    @TableField("gjrq_")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate gjrq;

    @TableField("beizhu_")
    private String beizhu;

    @TableField("create_by")
    private String createBy;

    @TableField("create_name")
    private String createName;

    @TableField("update_by")
    private String updateBy;

    @TableField("update_name")
    private String updateName;

    @TableField("create_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String createDate;

    @TableField("update_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateDate;

    @TableField("unit_id")
    private String unitId;

    @TableField("region_id")
    private String regionId;

    @TableField("delete_flag")
    private Integer deleteFlag;

    @TableField("version")
    private Integer version;
}
